home *** CD-ROM | disk | FTP | other *** search
/ Aminet 44 / Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso / Aminet / comm / misc / LCR-P.lha / lcr-p / Install LCR-P < prev    next >
Text File  |  2001-05-30  |  4KB  |  167 lines

  1. ;
  2. ; Installer script for Tankbuch installation
  3. ; $VER: Install_LCR-P by Ralf Scholl
  4. ;
  5. ;********* Setup all the messages *********************************************
  6. ;
  7.  
  8. (procedure SetupMessages
  9.  (
  10.   (set DefDest        "LCR:")
  11.   (set FontSrc        "Fonts/")
  12.   (set FontDest       "Fonts:")
  13.   (set DokSrc         "Dok/")
  14.   (set DokDest        "LCR:Dok/Guide")
  15.   (set DefCatalogDir  (tackon "LOCALE:Catalogs" @language))
  16.  
  17.   (if (= @language "english")
  18.    (
  19.      (set #InstallWhat         "What do you want to install ?")
  20.      (set #InstallChoice1      "Main program + Font")
  21.      (set #InstallChoice2      "Documentation")
  22.      (set #SelectMainDir       "Select the directory where to copy the Main program.")
  23.      (set #CopyingMainProg     "Copying the Main program...")
  24.      (set #ChangeStartup       "Insert path in startup-sequence...")
  25.      (set #CopyFont            "Copying the Font 'XEN' to Fonts:")
  26.      (set #Fixfonts-prompt     "It is a recommendation to run 'FixFont' now.\n(It may run a while!)")
  27.      (set #SelectDocDir        "Select the directory where to copy GUIDE-documentations.")
  28.      (set #CopyingDoc          "Copying documentation...")
  29.    )
  30.   )
  31.   (if (= @language "deutsch")
  32.    (
  33.      (set #InstallWhat         "Was möchten Sie installieren ?")
  34.      (set #InstallChoice1      "Hauptprogramm + Font")
  35.      (set #InstallChoice2      "Dokumentation")
  36.      (set #SelectMainDir       "Wählen Sie das Verzeichnis, in das Sie das Hauptprogramm kopieren möchten.")
  37.      (set #CopyingMainProg     "Kopiere das Hauptprogramm...")
  38.      (set #ChangeStartup       "Füge Pfad in die startup-sequence...")
  39.      (set #CopyFont            "Kopiere den Font 'XEN' nach Fonts:")
  40.      (set #Fixfonts-prompt     "Es wird empfohlen das Tool FixFont nun zu starten.\n(Es kann einige Zeit laufen!)")
  41.      (set #SelectDocDir        "Wählen Sie das Verzeichnis, in das Sie die GUIDE-Dokumentationen kopieren möchten.")
  42.      (set #CopyingDoc          "Kopiere die Dokumentation...")
  43.    )
  44.   )
  45.  )
  46. )
  47. ;********* Installiere das Hauptprogramm ************************************
  48. ;
  49.  
  50. (procedure InstallMainProg
  51.  
  52.  (
  53.   (set MainDir
  54.     (askdir
  55.      (prompt #SelectMainDir)
  56.      (help @askdir-help)
  57.      (default DefDest)
  58.     )
  59.   )
  60.  
  61.   (copyfiles
  62.     (prompt #CopyingMainprog)
  63.     (help @copyfiles-help)
  64.     (source "LCR-P")
  65.     (dest MainDir)
  66.     (infos)
  67.   )
  68.   (copyfiles
  69.     (prompt #CopyingMainprog)
  70.     (help @copyfiles-help)
  71.     (source "PICX.obj")
  72.     (dest MainDir)
  73.     (infos)
  74.   )
  75.  
  76. ; *** Kopiere mit Fragen die wichtigen Daten ***
  77.  
  78.   (Message "\n\nEs wird nun der Font 'XEN' kopiert.\nWenn Sie die Installation hier abbrechen,\nist das Programm LCR-P bereits funktionstüchtig,\njedoch werden die Texte mit dem eingestellten Fenster-Font dargestellt,\nwas nicht immer die optimale Einstellung darstellt.\n\nEs wird empfohlen den Font zu installieren!")
  79.   (copyfiles
  80.     (prompt #CopyFont)
  81.     (help @copyfiles-help)
  82.     (source FontSrc)
  83.     (all)
  84.     (dest FontDest)
  85.     (confirm)
  86.   )
  87.   (run "SYS:System/FixFonts"
  88.     (prompt #fixfonts-prompt)
  89.     (confirm)
  90.     (help #fixfonts-help)
  91.   )
  92.  )
  93. )
  94.  
  95. ;********* Installiere die Anleitung ****************************************
  96. ;
  97.  
  98. (procedure InstallDoc
  99.  
  100.  (
  101.   (Message "\n\nEs werden nun die Anleitungen im AmigaGuide-Format kopiert.")
  102.   (set DocDir
  103.     (askdir
  104.       (prompt #SelectDocDir)
  105.       (help @askdir-help)
  106.       (default DokDest)
  107.     )
  108.   )
  109.   (copyfiles
  110.     (prompt #CopyingDoc)
  111.     (help @copyfiles-help)
  112.     (source DokSrc)
  113.     (all)
  114.     (dest DocDir)
  115.     (infos)
  116.   )
  117.  )
  118. )
  119. ;********* Start of the installation program **********************************
  120. ;
  121. (complete 0)
  122. (user 2)
  123. (set #InstallWhat "")
  124. ;
  125. ;********* Setup messages and check language
  126. ;
  127. (SetupMessages)
  128. (if (= #InstallWhat "")
  129.   (
  130.     (set langnum
  131.       (askchoice
  132.     (prompt "Which language do you speak ?")
  133.     (help @askoptions-help)
  134.     (choices "english" "deutsch")
  135.       )
  136.     )
  137.     (set @language (select langnum "english" "deutsch"))
  138.     (SetupMessages)
  139.   )
  140. )
  141. ;
  142. ;********* Displays the welcome message
  143. ;
  144. (user 1)
  145. (welcome)
  146. ;
  147. ;********* Ask which part is to be installed
  148. ;
  149. (set ToInstall
  150.   (askoptions
  151.     (prompt #InstallWhat)
  152.     (help @askoptions-help)
  153.     (choices #InstallChoice1 #InstallChoice2)
  154.   )
  155. )
  156.  
  157. ;******** Install each part
  158. ;
  159. (complete 16) (if (BITAND ToInstall  1) (InstallMainProg))
  160. (complete 78) (if (BITAND ToInstall  2) (InstallDoc))
  161. ;
  162.  
  163. ;******** End
  164. ;
  165. (complete 100)
  166. (exit (quiet))
  167.